import { ref } from "vue"
import { useWait } from "."

function useLoading() {
    const tableLoading = ref(false)

    async function stop() {

        await useWait(500)

        tableLoading.value = false
    }
    async function loading() {
        tableLoading.value = true
    }

    return {
        tableLoading,
        stop,
        loading,
    }
}

export default useLoading